package com.erp.itm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.erp.itm.dao.ProjectUsersDao;
import com.erp.itm.domain.ProjectUsersDO;
import com.erp.itm.service.ProjectUsersService;



@Service
public class ProjectUsersServiceImpl implements ProjectUsersService {
	@Autowired
	private ProjectUsersDao projectUsersDao;
	
	@Override
	public ProjectUsersDO get(Long id){
		return projectUsersDao.get(id);
	}
	
	@Override
	public List<ProjectUsersDO> list(Map<String, Object> map){
		return projectUsersDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return projectUsersDao.count(map);
	}
	
	@Override
	public int save(ProjectUsersDO projectUsers){
		return projectUsersDao.save(projectUsers);
	}
	
	@Override
	public int update(ProjectUsersDO projectUsers){
		return projectUsersDao.update(projectUsers);
	}
	
	@Override
	public int remove(Long id){
		return projectUsersDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return projectUsersDao.batchRemove(ids);
	}

	@Override
	public ProjectUsersDO getListByItmid(Long itmid, Long userId) {
		return projectUsersDao.getListByItmid(itmid,userId);
	}

}
